package com.admin.client.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * (CoreShopGoods)表实体类
 *
 * @author cxy
 * @since 2025-01-09 10:28:28
 */
@ApiModel("$tableInfo.comment")
@ColumnWidth(25)//列宽
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class CoreShopGoods extends Model<CoreShopGoods> {// swagger2,mybatis-plus
    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 生成实体字段
    @TableId(type = IdType.INPUT)
    @ApiModelProperty("商品id")
    @ExcelProperty({"商品id","id"})
    private Long id;
    
    @ApiModelProperty("物品id")
    @ExcelProperty({"物品id","propId"})
    private Long propId;
    
    @ApiModelProperty("商店类型1.元宝商店2.五铢商店3.灵铢商店4.装备商店")
    @ExcelProperty({"商店类型1.元宝商店2.五铢商店3.灵铢商店4.装备商店","type"})
    private Integer type;
    
    @ApiModelProperty("货币数量")
    @ExcelProperty({"货币数量","price"})
    private String price;
    
    @ApiModelProperty("限购类型")
    @ExcelProperty({"限购类型","limitType"})
    private Integer limitType;
    
    @ApiModelProperty("限购数量")
    @ExcelProperty({"限购数量","limitNum"})
    private Integer limitNum;
    
    @ApiModelProperty("权重")
    @ExcelProperty({"权重","weight"})
    private Integer weight;
    
    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 序列化版本号
    @TableField(exist = false)
    private static final long serialVersionUID = 498047450061023967L;
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 获取主键值
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    ///////////////////////////////////////////////////////////////////////////////////////////////////////  基础数据初始化
    public CoreShopGoods init() {
        return this;
    }
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 领域业务
}

